home *** CD-ROM | disk | FTP | other *** search
Wrap
; $VER: Install_UrlKit 1.0 (14.1.97) ; ; Français ------- (procedure français ( (set MSG_WRONGOS "\n\nGrabURL nécessite AmigaDOS V39 (3.0) ou plus!") (set MSG_DESTBIN "OÙ désirez-vous installer les fichiers exécutables?") (set MSG_DESTDOC "OÙ désirez-vous installer les documents AmigaGuide?") (set MSG_DONE "\n\nL'installation de GrabURL est maintenant terminée.\n\nLes exécutables sont maintenant dans le répertoire %s.\nLes documents AmigaGuides sont maintenant dans %s.\n\nMerci d'essayer GrabURL!") (set ASK_BIN "Sélectionnez les exécutables à copier.\n\n** Notez qu'ils doivent tous être copiés pour utiliser GrabURL.") (set ASK_DOC "Sélectionnez les documents AmigaGuide à copier.") (set FILE_GRABHTTP ("GrabHTTP (%ld octets)" (getsize "bin/GrabHTTP_000"))) (set FILE_URLMANAGER ("UrlManager (%ld octets)" (getsize "bin/UrlManager_000"))) (set FILE_SCANHTML ("ScanHTML (%ld octets)" (getsize "bin/ScanHTML_000"))) (set FILE_GRABURL ("GrabURL (%ld octets)" (getsize "rexx/GrabURL.rexx"))) (set DOC_GRABHTTP ("GrabHTTP.guide (%ld octets)" (getsize "doc/GrabHTTP.guide"))) (set DOC_URLMANAGER ("UrlManager.guide (%ld octets)" (getsize "doc/UrlManager.guide"))) (set DOC_SCANHTML ("ScanHTML.guide (%ld octets)" (getsize "doc/ScanHTML.guide"))) (set DOC_GRABURL ("GrabURL.guide (%ld octets)" (getsize "doc/GrabURL.guide"))) )) ; English ------- (procedure english ( (set MSG_WRONGOS "\n\nGrabURL needs at least AmigaDOS V39 (3.0)!") (set MSG_DESTBIN "Where do you want to install the executable files?") (set MSG_DESTDOC "Where do you want to install the AmigaGuide documents?") (set MSG_DONE "\n\nGrabURL's installation is done.\n\nThe executable files are now in %s.\nThe AmigaGuide documents are now in %s.\n\nThanks for trying GrabURL!") (set ASK_BIN "Select the files to copy.\n\nYou NEED all of them to get a working GrabURL!") (set ASK_DOC "Select the help files to copy.") (set FILE_GRABHTTP ("GrabHTTP (%ld bytes)" (getsize "bin/GrabHTTP_000"))) (set FILE_URLMANAGER ("UrlManager (%ld bytes)" (getsize "bin/UrlManager_000"))) (set FILE_SCANHTML ("ScanHTML (%ld bytes)" (getsize "bin/ScanHTML_000"))) (set FILE_GRABURL ("GrabURL (%ld bytes)" (getsize "rexx/GrabURL.rexx"))) (set DOC_GRABHTTP ("GrabHTTP.guide (%ld bytes)" (getsize "doc/GrabHTTP.guide"))) (set DOC_URLMANAGER ("UrlManager.guide (%ld bytes)" (getsize "doc/UrlManager.guide"))) (set DOC_SCANHTML ("ScanHTML.guide (%ld bytes)" (getsize "doc/ScanHTML.guide"))) (set DOC_GRABURL ("GrabURL.guide (%ld bytes)" (getsize "doc/GrabURL.guide"))) )) (if (= @language "english") (english)) (if (= @language "français") (français)) ; Check OS version (set osversion (/ (getversion) 65536)) (if (< osversion 39) (abort MSG_WRONGOS) ) ; Default destinations (if (exists "AmiTCP:bin" (noreq)) (set def_bindest "AmiTCP:bin") (set def_bindest @default-dest) ) (if (exists "AmiTCP:help" (noreq)) (set def_docdest "AmiTCP:help") (set def_docdest @default-dest) ) (complete 0) ; Install binaries (set binchoice (askoptions (prompt ASK_BIN) (help @askchoice-help) (choices FILE_GRABHTTP FILE_URLMANAGER FILE_SCANHTML FILE_GRABURL) (default -1)) ) (if (<> binchoice 0) ( ; Something to copy (set bindir (askdir (prompt MSG_DESTBIN) (help @askdir-help) (default def_bindest) (newpath))) ; GrabHTTP (if (IN binchoice 0) ( (copyfiles (help @copyfiles-help) (source "bin/GrabHTTP_000") (dest bindir) (newname "GrabHTTP")) (protect (tackon bindir "GrabHTTP") 32) ) ; End GrabHTTP ) ; End if ; UrlManager (if (IN binchoice 1) ( (copyfiles (help @copyfiles-help) (source "bin/UrlManager_000") (dest bindir) (newname "UrlManager")) (protect (tackon bindir "UrlManager") 32) ) ; End UrlManager ) ; End if ; ScanHTML (if (IN binchoice 2) ( (copyfiles (help @copyfiles-help) (source "bin/ScanHTML_000") (dest bindir) (newname "ScanHTML")) (protect (tackon bindir "ScanHTML") 32) ) ; End ScanHTML ) ; End if ; GrabURL.rexx (if (IN binchoice 3) ( (copyfiles (help @copyfiles-help) (source "rexx/GrabURL.rexx") (dest bindir) (newname "GrabURL")) (protect (tackon bindir "GrabURL") 66) ) ; End GrabURL.rexx ) ; End if )) ; End if (complete 50) ; Install documents (set docchoice (askoptions (prompt ASK_DOC) (help @askchoice-help) (choices DOC_GRABHTTP DOC_URLMANAGER DOC_SCANHTML DOC_GRABURL) (default -1)) ) (if (<> docchoice 0) ( ; Something to copy (set docdir (askdir (prompt MSG_DESTDOC) (help @askdir-help) (default def_docdest) (newpath))) ; GrabHTTP (if (IN docchoice 0) ( (copyfiles (help @copyfiles-help) (source "doc/GrabHTTP.guide") (dest docdir) (infos)) (protect (tackon docdir "GrabHTTP.guide") 2) ) ; End GrabHTTP ) ; End if ; UrlManager (if (IN docchoice 1) ( (copyfiles (help @copyfiles-help) (source "doc/UrlManager.guide") (dest docdir) (infos)) (protect (tackon docdir "UrlManager.guide") 2) ) ; End UrlManager ) ; End if ; ScanHTML (if (IN docchoice 2) ( (copyfiles (help @copyfiles-help) (source "doc/ScanHTML.guide") (dest docdir) (infos)) (protect (tackon docdir "ScanHTML.guide") 2) ) ; End ScanHTML ) ; End if ; GrabURL.rexx (if (IN docchoice 3) ( (copyfiles (help @copyfiles-help) (source "doc/GrabURL.guide") (dest docdir) (infos)) (protect (tackon docdir "GrabURL.guide") 2) ) ; End GrabURL.rexx ) ; End if )) ; End if (complete 100) ; End! (message (MSG_DONE bindir docdir)) (run "run <>nil: more Readme_Now.txt") (exit (quiet))